package com.ruoyi.inventory.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 盘点明细对象 t_inv_session_item
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class TInvSessionItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 盘点任务ID */
    @Excel(name = "盘点任务ID")
    private Long sessionId;

    /** 盘点单号 */
    @Excel(name = "盘点单号")
    private String sessionNo;

    /** 备件编号 */
    @Excel(name = "备件编号")
    private String partNo;

    /** 理论库存 */
    @Excel(name = "理论库存")
    private BigDecimal theoreticalQty;

    /** 实盘数量 */
    @Excel(name = "实盘数量")
    private BigDecimal actualQty;

    /** 逻辑删除:0未删 1已删 */
    @Excel(name = "逻辑删除:0未删 1已删")
    private Integer isDelete;

    /** 差异数量 */
    @Excel(name = "差异数量")
    private BigDecimal diffQty;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSessionId(Long sessionId) 
    {
        this.sessionId = sessionId;
    }

    public Long getSessionId() 
    {
        return sessionId;
    }

    public void setSessionNo(String sessionNo) 
    {
        this.sessionNo = sessionNo;
    }

    public String getSessionNo() 
    {
        return sessionNo;
    }

    public void setPartNo(String partNo) 
    {
        this.partNo = partNo;
    }

    public String getPartNo() 
    {
        return partNo;
    }

    public void setTheoreticalQty(BigDecimal theoreticalQty) 
    {
        this.theoreticalQty = theoreticalQty;
    }

    public BigDecimal getTheoreticalQty() 
    {
        return theoreticalQty;
    }

    public void setActualQty(BigDecimal actualQty) 
    {
        this.actualQty = actualQty;
    }

    public BigDecimal getActualQty() 
    {
        return actualQty;
    }

    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    public void setDiffQty(BigDecimal diffQty) 
    {
        this.diffQty = diffQty;
    }

    public BigDecimal getDiffQty() 
    {
        return diffQty;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sessionId", getSessionId())
            .append("partNo", getPartNo())
            .append("theoreticalQty", getTheoreticalQty())
            .append("actualQty", getActualQty())
            .append("isDelete", getIsDelete())
            .append("diffQty", getDiffQty())
            .toString();
    }
}
